package com.rd.student.jike.class2.xuezhixin.day0802;

public class Test {

    public static void main(String[] args) {
//        Animal animal = Store.getInstance();
//        animal.voice();
//        animal.enjoy();

        Lady lady1 = new Lady("张女士",new Cat("小喵","蓝色"));
        Lady lady2 = new Lady("王女士",new Dog("小汪","白色"));

//        Lady lady1 = new Lady("张女士",Store.getInstance());
//        Lady lady2 = new Lady("王女士",Store.getInstance());

        System.out.println(lady1);
        System.out.println(lady2);

    }
}
